package metier;

import java.util.Date;
import java.util.HashMap;

public class Commande 
{
	private int numCom;
	private Date dateCom;
	private double prixCom;
	private int nbPersonnes;	
	private Table laTable;
	private Serveur leServeur;
	private HashMap<Plat,Integer> laQuantitePlat;
	

	public Commande(int numCom, Date dateCom, double prixCom, int nbPersonnes,
			Table laTable, Serveur leServeur)
	{
		super();
		this.numCom = numCom;
		this.dateCom = dateCom;
		this.prixCom = prixCom;
		this.laTable = laTable;
		this.leServeur = leServeur;
		laQuantitePlat = new HashMap<Plat,Integer>();
	}
	
	public int getNumCom() 
	{
		return numCom;
	}
	public void setNumCom(int numCom)
	{
		this.numCom = numCom;
	}
	public Date getdateCom()
	{
		return dateCom;
	}
	public void setdateCom(Date dateCom)
	{
		this.dateCom = dateCom;
	}
	public double getPrixCom()
	{
		return prixCom;
	}
	public void setPrixCom(double prixCom)
	{
		this.prixCom = prixCom;
	}
	public int getNbPersonnes()
	{
		return nbPersonnes;
	}
	public void setNbPersonnes(int nbPersonnes)
	{
		this.nbPersonnes = nbPersonnes;
	}
	
	public String toString() 
	{
		return "date=" + dateCom + ", table=" + laTable;
	}

	public Object getLaCommande() {
		// TODO Auto-generated method stub
		return null;
	}
	
	
	
}
